[EXTERN _store_kernel_esp]

[GLOBAL _make_v86_jump]
[GLOBAL _end_v86_jump]

_make_v86_jump:
	mov ebp, esp
	mov eax, ebp
	push eax
	call _store_kernel_esp
	pop eax
	add esp, 4
	
	pop eax
	pop ebx
	pop ecx
	pop edx
	
	iret

_end_v86_jump:
	pop eax
	pop eax
	mov ebp, eax
	mov esp, ebp
	ret